package com.by.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.course.entity.bo.BaseUserBind;

import java.util.List;

public interface BaseUserBindMapper extends BaseMapper<BaseUserBind> {

    int insertSelective(BaseUserBind record);

    int updateByPrimaryKeySelective(BaseUserBind record);

    List<Long> selectUserListByTeacherId(Long teacherId);

    List<Long> selectTeacherListByUserId(Long studentId);

    List<BaseUserBind> selectBindByTeacherIdList(List<Long> teacherIdList);

    BaseUserBind selectPeriod(Long teacherId, Long studentId);
}